const express = require('express')
const article = express.Router()

// 获取所有文章信息，分页
article.get('/system/articlesinfo', require('./article/articlePage'))
// 添加文章
article.post('/system/insertarticle', require('./article/insertArticle'))
// 修改文章
article.post('/system/editarticle',require('./article/editArticle'))
// 删除文章
article.post('/system/deletearticle',require('./article/deleteArticle'))
// 博客首页获取所有文章，没有分页
article.get('/blog/allarticlesinfo', require('./article/getAllArticles'))
// 博客文章查询
article.get('/blog/querybyid', require('./article/queryById'))
// 博客文章标签查询
article.get('/blog/querybytag', require('./article/queryByTag'))
// 通过作者查询文章
article.get('/blog/querybyauthor', require('./article/queryByAuthor'))
// 获取热门标签文章
article.get('/blog/queryhot', require('./article/queryHot'))
// 文章评论api
article.post('/blog/editcomment',require('./article/editComment'))
// 关键词查询api
article.get('/blog/querybytitle',require('./article/queryByTitle'))

module.exports = article